<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
   <div>汤依纯</div>
   <button onclick="sendMsg()">按钮</button>
   <script>
       function changeText(){
            document.querySelector('div').innerHTML= '想你了'
            return '520'
       }

       function sendMsg(){
            //执行应用传给网页的方法
            //objName是应用传递过来的对象
            //objKey是应用传递过来对象身上的方法（函数）
            objName.objKey()
        }

   </script>
</body>
</html>